﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 网络参数设置的请求
    /// </summary>
    /// <remarks>
    /// 消息		获取网络参数
    /// ID	请求:0x8408 应答：0x8409
    /// 方向	VWAS->编码盒，解码盒
    /// typedef  struct
    /// {
    ///     T_HIPC_NET_HEADER	   head;
    ///     Uint8  dhcp;                          
    ///     T_HIPC_NET_INFO netInfo;
    /// } T_HIPC_NET_CONFIG_REQ;
    /// 
    /// 消息		设置网络参数
    /// ID	请求:0x840a 应答：0x840b
    /// 方向	VWAS->编码盒，解码盒
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_NET_CONFIG_REQ
    {
        #region Fields

        /// <summary>
        /// 网络协议数据头
        /// </summary>
        public T_HIPC_NET_HEADER head;

        /// <summary>
        /// dhcp
        /// </summary>
        /// <remarks>
        /// 1：dhcp 0：静态ip地址  
        /// </remarks>
        public byte dhcp;

        /// <summary>
        /// T_HIPC_NET_INFO
        /// </summary>
        public T_HIPC_NET_INFO netInfo;

        #endregion
    }
}
